import type{ ExtendedRouteObject } from "@/types/route"
const remainingRoutes:ExtendedRouteObject[] = [
  {
    path: "site-management",
    title: "站点管理",
    iconName: "AppstoreOutlined",
    accessRoles: ["admin", "merchant"],
    children: [
      {
        path: "my-sites",
        componentPath: "siteManagement/mySites",
        title: "我的站点",
        accessRoles: ["admin", "merchant"],
      },
      {
        path: "form-management",
        componentPath: "siteManagement/formManagement",
        title: "表单管理",
        accessRoles: ["admin", "merchant"],
      },
      {
        path: "template-management",
        componentPath: "siteManagement/templateManagement",
        title: "模板管理",
        accessRoles: ["admin", "merchant"],
      },
    ],
  },

  // 内容管理
  {
    path: "content-management",
    title: "内容管理",
    iconName: "FileOutlined",
    accessRoles: ["admin", "merchant"],
    children: [
      {
        path: "products",
        componentPath: "contentManagement/products",
        title: "产品管理",
        accessRoles: ["admin", "merchant"],
      },
      {
        path: "cases",
        componentPath: "contentManagement/cases",
        title: "案例管理",
        accessRoles: ["admin", "merchant"],
      },
      {
        path: "service-staff",
        componentPath: "contentManagement/serviceStaff",
        title: "服务人员",
        accessRoles: ["admin", "merchant"],
      },
      {
        path: "product-faqs",
        componentPath: "contentManagement/productFaqs",
        title: "产品问答",
        accessRoles: ["admin", "merchant"],
      },
      {
        path: "media-library",
        componentPath: "contentManagement/mediaLibrary",
        title: "媒体库",
        accessRoles: ["admin", "merchant"],
      },
    ],
  },

  // 线索管理
  {
    path: "lead-management",
    title: "线索管理",
    iconName: "ProfileOutlined",
    accessRoles: ["admin", "merchant"],
    children: [
      {
        path: "contact-leads",
        componentPath: "leadManagement/contactLeads",
        title: "线索列表",
        accessRoles: ["admin", "merchant"],
      },
    ],
  },

  // 方案管理
  {
    path: "plan-management",
    title: "方案管理",
    iconName: "FormOutlined",
    accessRoles: ["admin", "merchant"],
    children: [
      {
        path: "phone-plans",
        componentPath: "planManagement/phonePlans",
        title: "电话方案",
        accessRoles: ["admin", "merchant"],
      },
      {
        path: "wechat-plans",
        componentPath: "planManagement/wechatPlans",
        title: "微信方案",
        accessRoles: ["admin", "merchant"],
      },
    ],
  },

  // 媒体配置
  {
    path: "media-configuration",
    title: "媒体配置",
    iconName: "CodeOutlined",
    accessRoles: ["admin", "merchant"],
    children: [
      {
        path: "guangdian-tong",
        componentPath: "mediaConfiguration/guangdianTong",
        title: "广电通",
        accessRoles: ["admin", "merchant"],
      },
    ],
  },

  // 广告投放
  {
    path: "ad-delivery",
    title: "广告投放",
    iconName: "ShoppingOutlined",
    accessRoles: ["admin", "merchant"],
    children: [
      {
        path: "h5-links",
        componentPath: "adDelivery/h5Links",
        title: "H5链接",
        accessRoles: ["admin", "merchant"],
      },
      {
        path: "mini-program-links",
        componentPath: "adDelivery/miniProgramLinks",
        title: "小程序链接",
        accessRoles: ["admin", "merchant"],
      },
    ],
  },

  // 数据分析
  {
    path: "data-analysis",
    title: "数据分析",
    iconName: "LineChartOutlined",
    accessRoles: ["admin", "merchant"],
    children: [
      {
        path: "site-overview",
        componentPath: "dataAnalysis/siteOverview",
        title: "站点概览",
        accessRoles: ["admin", "merchant"],
      },
      {
        path: "visitor-analysis",
        componentPath: "dataAnalysis/visitorAnalysis",
        title: "访客分析",
        accessRoles: ["admin", "merchant"],
      },
      {
        path: "component-analysis",
        componentPath: "dataAnalysis/componentAnalysis",
        title: "组件分析",
        accessRoles: ["admin", "merchant"],
      },
    ],
  },

  // 小程序管理
  {
    path: "mini-program-management",
    title: "小程序管理",
    iconName: "LaptopOutlined",
    accessRoles: ["admin", "merchant"],
    children: [
      {
        path: "mini-programs",
        componentPath: "miniProgramManagement/miniPrograms",
        title: "小程序列表",
        accessRoles: ["admin", "merchant"],
      },
    ],
  },

  // 系统管理
  {
    path: "system-management",
    title: "系统管理",
    iconName: "SettingOutlined",
    accessRoles: ["admin"],
    children: [
      {
        path: "menu-management",
        componentPath: "systemManagement/menuManagement",
        title: "菜单管理",
        accessRoles: ["admin"],
      },
    ],
  },
];

export default remainingRoutes;
